﻿namespace DesignPattern.com.bridge.error {
    public class ISolider:ICharacter {
        public override void attack(ICharacter target){
            _wea.showShootEffect("声音");
            switch (_wea.WeaponEnum){
                case ENUM_WEAPON.gun:
                    _wea.showBulletEffect("攻击弹道 gun");
                    break;
                case ENUM_WEAPON.rocket:
                    _wea.showBulletEffect("攻击弹道 rocket");
                    break;
            }
            _wea.fire(target);
        }
    }
}